package com.service;

import com.entity.CatAsk;
import com.mapper.CatAskMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CatAskService {

    @Autowired
    CatAskMapper CatAskMapper;

    public int AddCatAsk(CatAsk catAsk){
        return CatAskMapper.AddCatAsk(catAsk);
    }

    public int AddCatAnswer(CatAsk catAsk){
        return CatAskMapper.AddCatAnswer(catAsk);
    }

    public List<CatAsk> AllCatAsk(){
        return CatAskMapper.AllCatAsk();
    }

    public List<CatAsk> ShowAnswer(String cquestionid){
        return CatAskMapper.ShowAnswer(cquestionid);
    }
}
